From: Andrew Cooper Date: Mon, 8 Jun 2015 13:38:39 +0000 (+0200) Subject: arm: use existing __section() macro instead of opencoding it X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~3127 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=522b9d0be31048e51079b2b7a8f511084a016221;p=xen.git arm: use existing __section() macro instead of opencoding it No functional change Signed-off-by: Andrew Cooper Acked-by: Ian Campbell --- diff --git a/xen/include/asm-arm/device.h b/xen/include/asm-arm/device.h index a72f7c9416..5d0a4cd14b 100644 --- a/xen/include/asm-arm/device.h +++ b/xen/include/asm-arm/device.h @@ -71,7 +71,7 @@ enum device_class device_get_class(const struct dt_device_node *dev); #define DT_DEVICE_START(_name, _namestr, _class) \ static const struct device_desc __dev_desc_##_name __used \ -__attribute__((__section__(".dev.info"))) = { \ +__section(".dev.info") = { \ .name = _namestr, \ .class = _class, \ diff --git a/xen/include/asm-arm/platform.h b/xen/include/asm-arm/platform.h index 746e126b49..283b50f3c5 100644 --- a/xen/include/asm-arm/platform.h +++ b/xen/include/asm-arm/platform.h @@ -67,7 +67,7 @@ void platform_dom0_gnttab(paddr_t *start, paddr_t *size); #define PLATFORM_START(_name, _namestr) \ static const struct platform_desc __plat_desc_##_name __used \ -__attribute__((__section__(".arch.info"))) = { \ +__section(".arch.info") = { \ .name = _namestr, #define PLATFORM_END \